﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MultiplayerDice.Implementation
{
    public static class Dice
    {
        private static Random random = new Random(5);
        private static object lockObject = new object();

        public static short Throw()
        {
            lock (lockObject)
            {
                return (short)(random.Next(5) + 1);
            }
        }
    }
}
